package health

import (
	"gitcode.com/G-YT/ANN/server/api/v1"
	"github.com/gin-gonic/gin"
)

type HealthQAndARouter struct {
}

// InitHealthQAndARouter 初始化 健康问答表 路由信息
func (s *HealthQAndARouter) InitHealthQAndARouter(Router *gin.RouterGroup) {
	QuestionAndAnswerRouter := Router.Group("QuestionAndAnswer")
	QuestionAndAnswerRouterWithoutRecord := Router.Group("QuestionAndAnswer")
	var QuestionAndAnswerApi = v1.ApiGroupApp.HealthApiGroup.HealthQAndAApi
	{
		QuestionAndAnswerRouter.POST("createHealthQAndA", QuestionAndAnswerApi.CreateHealthQAndA)                        // 新建健康问答表
		QuestionAndAnswerRouter.DELETE("deleteHealthQAndA", QuestionAndAnswerApi.DeleteHealthQAndA)                      // 删除健康问答表
		QuestionAndAnswerRouter.DELETE("deleteHealthQAndAByIds", QuestionAndAnswerApi.DeleteHealthQAndAByIds)            // 批量删除健康问答表
		QuestionAndAnswerRouter.PUT("updateHealthQAndA", QuestionAndAnswerApi.UpdateHealthQAndA)                         // 更新健康问答表
		QuestionAndAnswerRouter.GET("getHealthAnswerListByQuestion", QuestionAndAnswerApi.GetHealthAnswerListByQuestion) // 获取回答列表
	}
	{
		QuestionAndAnswerRouterWithoutRecord.GET("findHealthQAndA", QuestionAndAnswerApi.FindHealthQAndA)       // 根据ID获取健康问答表
		QuestionAndAnswerRouterWithoutRecord.GET("getHealthQAndAList", QuestionAndAnswerApi.GetHealthQAndAList) // 获取健康问答表列表
	}
}
